﻿@model Coticula.Web.Models.Results

@{
    ViewBag.Title = string.Format("Edit result {0}", Model.Id);
}

@{
    var pageMenu = new MvcHtmlString[] { Html.ActionLink("Solutions", "Index"), };
    ViewBag.PageMenu = pageMenu;
}

<h2>@ViewBag.Title</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Result</legend>

        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.CompiledDetailId)

        <div class="editor-label">
            @Html.LabelFor(model => model.VerdictId, "Verdict")
        </div>
        <div class="editor-field">
            @Html.DropDownList("VerdictId", String.Empty)
            @Html.ValidationMessageFor(model => model.VerdictId)
        </div>

        <p>
            <input type="submit" value="Save" />
            @Html.ActionLink("Cancel", "Details", "Solution", new { id = Model.Id }, null)
        </p>
    </fieldset>
}

